package pojo;

import java.util.Date;

/**
 * 员工类
 */
public class Emp {
    private String ename;
    private int empno;
    private int deptno;
    private String job;
    private Date hireDate;
    private int comm;
    private int salary;

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public int getEmpno() {
        return empno;
    }

    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public int getComm() {
        return comm;
    }

    public void setComm(int comm) {
        this.comm = comm;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public Emp() {
    }

    public Emp(String ename, int empno, int deptno, String job, Date hireDate, int comm, int salary) {
        this.ename = ename;
        this.empno = empno;
        this.deptno = deptno;
        this.job = job;
        this.hireDate = hireDate;
        this.comm = comm;
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "ename='" + ename + '\'' +
                ", empno=" + empno +
                ", deptno=" + deptno +
                ", job='" + job + '\'' +
                ", hireDate=" + hireDate +
                ", comm=" + comm +
                ", salary=" + salary +
                '}';
    }
}
